define(['jquery', 'bootstrap', 'validate', 'validate.en', 'datetimepicker', 'datetimepickerCN', 'shiftform'],
  function ($, validate) {
    return {

      init: function () {
        this.initPage();
      },

      initPage: function () {
      	
      	$(document).find('form').bt_validate();

      	$('.date').datetimepicker({
          format: 'yyyy-mm-dd',
          autoclose: true,
          language: 'zh-CN',
          todayBtn: 'linked',
          startDate: '${today}',
          todayHighlight: true,
          pickerPosition: 'bottom-right',
          minView: 'month'
        });
      	
      }

    }
  })